package com.wanxing.sellerapp.seller.sdk;

import com.wanxing.sellerapp.seller.callback.OpenDoorCallback;

public interface IDoorAble {

    /**
     * 开门
     * @param doorNo 门编号
     * @return 是否成功
     */
    boolean openDoor(int doorNo) throws InterruptedException;


    boolean canOpenDoor();

    void openDoor(int doorNo, String orderId, OpenDoorCallback callback) throws InterruptedException;

    void openDoor(int doorNo, String orderId,String date);
    /**
     * 关门
     * @param doorNo 门编号
     * @return 是否成功
     */
    boolean closeDoor(int doorNo) throws InterruptedException;

}
